package org.javaboy.vhr.mapper;

import org.javaboy.vhr.model.AttendanceRecord;

import java.util.List;


public interface AttendanceRecordMapper {
    //插入考勤记录
    int insert(AttendanceRecord attendanceRecord);
    // 查询所有员工打卡记录
    List<AttendanceRecord> getAllAttendanceRecords();
    // 根据员工 ID 查询打卡记录
    List<AttendanceRecord> getAttendanceRecordsByEid(Integer eid);
    //根据员工Name查询打卡记录
    List<AttendanceRecord> getAttendanceRecordsByEname(String ename);
    //根据id删除打卡记录
    int deleteAttendanceRecord(Integer id);
    //根据id更新打卡记录
    int updateAttendanceRecord(AttendanceRecord attendanceRecord);
    //根据id查询打卡记录
    AttendanceRecord getAttendanceRecordById(Integer id);

}